package cn.edu.scau.cmi.xiaozhenlin.abstractFactoryMethod.factory;

import cn.edu.scau.cmi.xiaozhenlin.insurance.Insurance;

public abstract class AbstractFactory {
	public static AbstractFactory getFactory(String company) {
		switch (company) {
		case "PICC": {
			return new piccFactory();
		}
		case "PinAn": {
			return new pingAnFactory();
		}
		default:
			break;
		}
		return null;
	}

	public abstract Insurance getCarDamage();

	public abstract Insurance getPhysicalIujury();

	public abstract Insurance getScratch();

}
